package com.curry.android.demo.activity;

import java.util.ArrayList;
import java.util.List;

import android.os.Bundle;

import com.curry.android.R;
import com.curry.android.ui.frament.IndicatorFragmentActivity;
import com.curry.android.view.gridview.ChannelInfoBean;


public class MainActivity extends IndicatorFragmentActivity{

	ChannelInfoBean cb;
	
//	protected void onCreate(Bundle savedInstanceState) {
//		super.onCreate(savedInstanceState);
//		//setContentView(R.layout.layout_mian);
//		cb=new ChannelInfoBean("111", R.drawable.orange, 0);
//		List<ChannelInfoBean> list =new ArrayList<ChannelInfoBean>();
//		list.add(cb);
//		cb=new ChannelInfoBean("222", R.drawable.orange, 1);
//		list.add(cb);
//		//GridViewGallery gv=new GridViewGallery(MainActivity.this, list);
//
//		 setContentView(new GridViewGallery(MainActivity.this, list));
//	}

	 public static final int FRAGMENT_ONE = 0;
    public static final int FRAGMENT_TWO = 1;
    public static final int FRAGMENT_THREE = 2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        List list=new ArrayList();
        
    }

    @Override
    protected int supplyTabs(List<TabInfo> tabs) {
//        tabs.add(new TabInfo(FRAGMENT_ONE, getString(R.string.fragment_one),
//                FragmentOne.class));
//        tabs.add(new TabInfo(FRAGMENT_TWO, getString(R.string.fragment_two),
//                FragmentTwo.class));
        tabs.add(new TabInfo(FRAGMENT_THREE, getString(R.string.fragment_three),
                FragmentThree.class));

        return FRAGMENT_TWO;
    }
}
